package com.example.cupid.service.Impl;

import com.example.cupid.mapper.TagMapper;
import com.example.cupid.pojo.Tags;
import com.example.cupid.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 2021/9/11
 **/
@Service
public class TagServiceImpl implements TagService {
    @Autowired
    private TagMapper tagMapper;

    public List<Tags> getTags(){
        return tagMapper.selectTags();
    }

    @Override
    public void saveWechatTag(int wechatId, String tagId) {
        tagMapper.insertWechatTag(wechatId,tagId);
    }
}
